<div id="ajax_show">
    <form id="data_form" class="js-ajax-form" action="{:U('Admin/Resources/resource_library')}" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>名称</th>
                <th>类型</th>
                <?php if($formParam['type'] == '1'){?>
                	<th>是否水印</th>
                <?php }?>
                <th>
                	上传时间&nbsp;
                	<a href="javascript:;" onclick="data_sort('asc')" title="升序">↑</a>&nbsp;&nbsp;<a href="javascript:;" onclick="data_sort('desc')" title="倒序">↓</a>
                	<input type="hidden" name="Name" value="{$formParam.Name}">
                	<input type="hidden" name="startDate" value="{$formParam.startDate}">
                	<input type="hidden" name="endDate" value="{$formParam.endDate}">
                	<input type="hidden" name="type" value="{$formParam.type}">
                	<input type="hidden"  name="is_water" value="{$formParam.is_water}">
                	<input type="hidden" class = 'order' name="order" value="{$formParam.order}">
                	<input type="hidden"  name="show_type" value="{$show_type}">
                	<input type=hidden  name="chosed_resource_ids" value="{$chosed_resource_ids}">
                </th>
                <th>上传者</th>
                <if condition="$show_type eq 2"><th>操作</th></if>
            </tr>
            </thead>
            <tbody>
             <!-- <if condition="($vo['type'] eq 2 and $vo['status'] eq 2) or in_array($vo['type'],array(1,3)) or $show_type eq 1"> -->
             <!--</if>  -->
            <?php $tmp_key = 1;?>
            <foreach name="data" item="vo">
                <tr>
                    <td><?php echo $tmp_key;?></td>
                    <td>{$vo.file_name}</td>
                    <td>
                    	<if condition="$vo['type'] eq 1">图片</if>
                    	<if condition="$vo['type'] eq 2">视频</if>
                    	<if condition="$vo['type'] eq 3">附件</if>
                    </td>
                    <?php if($formParam['type'] == '1'){?>
                    	<td>
	                    	<if condition="$vo['is_water'] eq 1">
	                    	是
	                    		<else/>
	                    	否
	                    	</if>
                		</td>
                	<?php }?>
                    <td>
                    	<if condition="$vo['type'] eq 2 and $vo['status'] eq 1"> 转码中
						<elseif condition="$vo['type'] eq 2 and $vo['status'] eq 3"/>转码失败
						<else /> {$vo.create_time}
						</if>
                    </td>
                    <td>
                    	{$vo.operation_name}
                    </td>
                    <if condition="$show_type eq 2">
	                    <td>
	                    	<if condition="$vo['type'] eq 2 and $vo['status'] eq 1">
	                    	<else/>
	                    		<input  id="checkbox_<?php echo $vo['resource_id'];?>"  type="checkbox" name="checkbox[]" <?php if(in_array($vo['resource_id'],$chosed_resource_ids_arr)) echo "checked=checked;"?> onclick="set_resource('{$vo.resource_id}','{$vo.type}');">
	                    	</if>
	                    	<input type="hidden" id="thumbnail_url_{$vo.resource_id}" value="{$vo.thumbnail_url}">
	                    	<input type="hidden" id="file_id_{$vo.resource_id}" value="{$vo.file_id}">
	                    	<input type="hidden" id="file_name_{$vo.resource_id}" value="{$vo.file_name}">
	                    	<input type="hidden" id="url_{$vo.resource_id}" value="{$vo.url}">
	                    	<input type="hidden" id="url1_{$vo.resource_id}" value="{$vo.url1}">
	                    	<input type="hidden" id="url2_{$vo.resource_id}" value="{$vo.url2}">
	                    	<input type="hidden" id="duration_{$vo.resource_id}" value="{$vo.duration}">
	                    	<input type="hidden" id="size_{$vo.resource_id}" value="{$vo.size}">
	                    	<input type="hidden" id="size1_{$vo.resource_id}" value="{$vo.size1}">
	                    	<input type="hidden" id="size2_{$vo.resource_id}" value="{$vo.size2}">
	                    	<input type="hidden" id="height_{$vo.resource_id}" value="{$vo.height}">
					        <input type="hidden" id="height1_{$vo.resource_id}" value="{$vo.height1}">
					        <input type="hidden" id="height2_{$vo.resource_id}" value="{$vo.height2}">
					        <input type="hidden" id="width_{$vo.resource_id}" value="{$vo.width}">
					        <input type="hidden" id="width1_{$vo.resource_id}" value="{$vo.width1}">
					        <input type="hidden" id="width2_{$vo.resource_id}" value="{$vo.width2}">
	                    </td>
                    </if>
                </tr>
                <?php $tmp_key++;?>
                
            </foreach>
            </tbody>
        </table>
    </form>
    </div>
